package blogsys.demo.dto;

import java.io.Serializable;
import java.util.List;

/**
 * 用户拥有的角色和权限
 */
public class UserRolePermission  implements Serializable {
    private String userId;
    private String userPassword;
    private List<String> userRole;
    private List<String> userPermission;


    public UserRolePermission() {
    }

    public UserRolePermission(String userId, String userPassword, List<String> userRole, List<String> userPermission) {
        this.userId = userId;
        this.userPassword = userPassword;
        this.userRole = userRole;
        this.userPermission = userPermission;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public List<String> getUserRole() {
        return userRole;
    }

    public void setUserRole(List<String> userRole) {
        this.userRole = userRole;
    }

    public List<String> getUserPermission() {
        return userPermission;
    }

    public void setUserPermission(List<String> userPermission) {
        this.userPermission = userPermission;
    }

    @Override
    public String toString() {
        return "UserRolePermission{" +
                "userId='" + userId + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userRole=" + userRole +
                ", userPermission=" + userPermission +
                '}';
    }
}
